﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.ImageViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Setja Inn Mynd
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Setja inn mynd</h1>
    <% using (Html.BeginForm("Upload", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
    { %>
        <%: Html.ValidationSummary(true) %>
        <div>
            <label for="image_ImageData">Vinsamlegast veljið mynd:</label>
        </div>
        <div>
            <input type="file" id="imageFile" name="imageFile" />
        </div>
        <div>
            <label for="image_ImageTitle">Titill:</label><br />
            <%: Html.TextBoxFor(model => model.image.ImageTitle) %>
            <%: Html.ValidationMessageFor(model => model.image.ImageTitle) %>
        </div>
        <div>
            <label for="image_ImageMessage">Af hverju/m er myndin:</label><br />
            <%: Html.TextBoxFor(model => model.image.ImageMessage) %>
            <%: Html.ValidationMessageFor(model => model.image.ImageMessage) %>
        </div>
        <p>
            <input type="submit" value="Vista mynd" />
        </p>
    <%} %>
    <%: Html.ActionLink("Til Baka", "MinarMyndir") %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server" >
    <%Html.RenderPartial("PartialViews/Actions", "Mynd"); %>
</asp:Content>
